#define _CRT_SECURE_NO_WARNINGS 1

class Solution {
public:
    bool isUnique(string astr) {
        int bitmap = 0;

        for (auto num : astr)
        {
            if (((bitmap >> (num % 26)) & 1) == 0)
            {
                cout << num % 26 << endl;
                bitmap |= (1 << (num % 26));
            }
            else
            {
                //cout<<bitmap<<endl;

                return false;
            }
        }
        return true;
    }
};